package com.leTest.eduService.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 讲师
 * </p>
 *
 * @author le
 * @since 2025-02-06
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("edu_teacher")
@Component
@Schema(title  = "TeacherEntity对象", description = "讲师")
public class TeacherEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 讲师ID
     */
    @Schema(title ="讲师ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 讲师姓名
     */
    @Schema(title ="name")
    @ApiModelProperty("讲师姓名")
    private String name;

    /**
     * 讲师简介
     */
    @TableField("intro")
    @Schema(title ="讲师简介")
    private String intro;

    /**
     * 讲师资历,一句话说明讲师
     */
    @TableField("career")
    @Schema(title ="讲师资历,一句话说明讲师")
    private String career;

    /**
     * 头衔 1高级讲师 2首席讲师
     */
    @TableField("level")
    @Schema(title ="头衔 1高级讲师 2首席讲师")
    private Integer level;

    /**
     * 讲师头像
     */
    @TableField("avatar")
    @Schema(title ="讲师头像")
    private String avatar;

    /**
     * 排序
     */
    @TableField("sort")
    @Schema(title ="排序")
    private Integer sort;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableField("is_deleted")
    @Schema(title ="逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Byte isDeleted;

    /**
     * 创建时间
     */
    @Schema(title ="创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @Schema(title ="更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
